package com.jinzhi.sys.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <pre>
 * </pre>
 * <small> 2018年3月23日 | Aron</small>
 */
@TableName("sys_user")
public class UserDO implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
    // 用户真实姓名
    private String name;
    // 用户名
    private String username;
    // 密码
    private String password;
    // salt
    private String salt;
    // 邮箱
    private String email;
    // 手机号
    private String mobile;
    // 状态 0:禁用，1:正常
    private Integer status;
    // 创建用户id5x5x
    private Long userIdCreate;
    // 创建时间
    private Date gmtCreate;
    // 修改时间
    private Date gmtModified;
    //角色
    @TableField(exist = false)
    private List<Long> roleIds;
    @TableField(exist = false)
    private String roleNameList;
    //性别
    private Long sex;
    //图片ID
    private Long picId;
    //现居住地
    private String liveAddress;
    //爱好
    private String hobby;
    //省份
    private String province;
    //所在城市
    private String city;
    //所在地区
    private String district;
    //证书小程序openId
    private String cerOpenId;
    //培训小程序openId
    private String traOpenId;
    //身份证号码
    private String idNumber;
    //支付密码
    private String payPassword;
    //会员类型(0个人会员，1机构会员，2运营人员)
    private Integer type;
    //所属机构ID
    private Long orgId;
    //机构名称
    private String orgName;
    //用户余额
    private BigDecimal money;
    //微信小程序id
    private Integer wxId;
    //用户头像
    private String headPortrait;
    //出生年月
    private String dateOfBirth;
    //民族
    private String nation;
    //学历
    private String education;
    //专业
    private String major;
    //政治面貌
    private String politicalAffiliation;
    //职务职称
    private String officialCapacity;
    //QQ
    private String QQ;
    //学习、工作经历
    private String experience;
	//专家荣耀
    @TableField(exist = false)
    private String honor;
    //审核状态（0：已完善（审核中）， 1：通过 ，2：未通过，3：未完善）
    private Integer state;

    //最后修改的端口(101：证书端，102：培训端)
    @TableField("last_edit")
    private Integer lastEdit;

    //用户绑定微信扫码登录唯一标识
    @TableField("login_wx_code")
    private String loginWxCode;



    //用户来源(0后台管理，1小程序，2课程)
    @TableField("user_source")
    private Integer userSource;

    public Integer getUserSource() {
        return userSource;
    }

    public void setUserSource(Integer userSource) {
        this.userSource = userSource;
    }
    public String getLoginWxCode() {
        return loginWxCode;
    }

    public void setLoginWxCode(String loginWxCode) {
        this.loginWxCode = loginWxCode;
    }

    //备注
    private String remark;
    public String getHonor() {
        return honor;
    }

    public Integer getLastEdit() {
        return lastEdit;
    }

    public void setLastEdit(Integer lastEdit) {
        this.lastEdit = lastEdit;
    }

    public void setHonor(String honor) {
        this.honor = honor;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRoleNameList() {
        return roleNameList;
    }

    public void setRoleNameList(String roleNameList) {
        this.roleNameList = roleNameList;
    }

    public String getHeadPortrait() {
        return headPortrait;
    }

    public void setHeadPortrait(String headPortrait) {
        this.headPortrait = headPortrait;
    }

    public String getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(String dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getPoliticalAffiliation() {
        return politicalAffiliation;
    }

    public void setPoliticalAffiliation(String politicalAffiliation) {
        this.politicalAffiliation = politicalAffiliation;
    }

    public String getOfficialCapacity() {
        return officialCapacity;
    }

    public void setOfficialCapacity(String officialCapacity) {
        this.officialCapacity = officialCapacity;
    }

    public String getQQ() {
        return QQ;
    }

    public void setQQ(String QQ) {
        this.QQ = QQ;
    }

    public String getExperience() {
        return experience;
    }

    public void setExperience(String experience) {
        this.experience = experience;
    }

    public Integer getWxId() {
        return wxId;
    }

    public void setWxId(Integer wxId) {
        this.wxId = wxId;
    }

    public String getCerOpenId() {
        return cerOpenId;
    }

    public void setCerOpenId(String cerOpenId) {
        this.cerOpenId = cerOpenId;
    }

    public String getTraOpenId() {
        return traOpenId;
    }

    public void setTraOpenId(String traOpenId) {
        this.traOpenId = traOpenId;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /**
     * 设置：用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取：用户名
     */
    public String getUsername() {
        return username;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 设置：密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取：密码
     */
    public String getPassword() {
        return password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    /**
     * 设置：邮箱
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取：邮箱
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置：手机号
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * 获取：手机号
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 设置：状态 0:禁用，1:正常
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取：状态 0:禁用，1:正常
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置：创建用户id
     */
    public void setUserIdCreate(Long userIdCreate) {
        this.userIdCreate = userIdCreate;
    }

    /**
     * 获取：创建用户id
     */
    public Long getUserIdCreate() {
        return userIdCreate;
    }

    /**
     * 设置：创建时间
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 获取：创建时间
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 设置：修改时间
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     * 获取：修改时间
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    public List<Long> getroleIds() {
        return roleIds;
    }

    public void setroleIds(List<Long> roleIds) {
        this.roleIds = roleIds;
    }

    public Long getSex() {
        return sex;
    }

    public void setSex(Long sex) {
        this.sex = sex;
    }

    public Long getPicId() {
        return picId;
    }

    public void setPicId(Long picId) {
        this.picId = picId;
    }

    public String getLiveAddress() {
        return liveAddress;
    }

    public void setLiveAddress(String liveAddress) {
        this.liveAddress = liveAddress;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "UserDO [id=" + id + ",userSource="+userSource+", username=" + username + ", name=" + name + ", password=" + password
                + ", email=" + email + ", mobile=" + mobile + ", status=" + status
                + ", userIdCreate=" + userIdCreate + ", gmtCreate=" + gmtCreate + ", gmtModified=" + gmtModified
                + ", roleIds=" + roleIds + ", sex=" + sex + ", birth=" + dateOfBirth + ", picId=" + picId + ", liveAddress="
                + liveAddress + ", hobby=" + hobby + ", province=" + province + ", city=" + city + ", district="
                + district + "]";
    }


}
